GUI Editor
CocoVouchers features a powerful in-game GUI editor for creating and modifying vouchers without editing files manually.
Opening the Editor
/voucher edit <voucher_name>
Permission: cocovouchers.edit
Editor Overview
The main editor screen provides access to all voucher settings:
| Button | Function |
|---|---|
| 📝 Voucher Name | Rename the voucher |
| 🎯 Click Behavior | Change click type (Right/Left/Shift) |
| ⏱️ Cooldown | Set redemption cooldown |
| ✅ Confirmation | Toggle double-click confirmation |
| 💬 Messages | Edit success/failure messages |
| 📋 Requirements | Manage usage requirements |
| 📖 Action Categories | Configure all action types |
| 🎲 Chance Groups | Set up chance-based rewards |
| 🎰 Random Groups | Configure weighted random rewards |
| ⚒️ Crafting | Set up crafting recipe |
Voucher Name
Click to rename the voucher:
- 3-32 characters
- Letters, numbers, dashes, underscores only
- Must be unique
Click Behavior
Cycle through available click types:
- Right Click - Default
- Left Click
- Shift + Right Click
- Shift + Left Click
Cooldown
Set the cooldown in seconds:
- Enter
0to disable cooldown - Cooldown persists across restarts (database)
- Players with
cocovouchers.cooldown.bypassskip cooldowns
Confirmation
Toggle and configure confirmation:
- Left-Click: Enable/Disable confirmation
- Right-Click: Set timeout duration
When enabled, players must click twice to use the voucher.
Messages
Edit voucher-specific messages:
- Left-Click: Edit success message
- Right-Click: Edit failure message
These override the default messages from locale file.
Requirements Menu
Manage all voucher requirements:
Adding Requirements
- Click Add Requirement
- Select requirement type:
- Permission
- World
- Gamemode
- Placeholder
- Item
- Enter the value in chat
Editing Requirements
- Left-Click: Edit the value
- Right-Click: Toggle inverse (!)
- Shift + Left-Click: Remove
Clearing All
Hold Shift + Left-Click on clear button to remove all requirements.
Actions Menu
The actions menu shows all action categories:
| Category | Description |
|---|---|
| Regular Actions | Always execute |
| Chance Groups | Percentage-based |
| Random Groups | Weighted random |
Managing Actions
Click any category to open its action list:
- Left-Click action: Edit value
- Right-Click action: Remove
- Add button: Add new action
Action Types
When adding actions, select the type:
- MESSAGE
- CONSOLE
- PLAYER
- SOUND
- BROADCAST
- EFFECT
- ACTIONBAR
- TITLE
- BOSSBAR
Chance Groups
Manage percentage-based reward groups:
Adding Groups
- Click Add Chance Group
- A new group with 50% chance is created
- Click to edit chance percentage
Editing Groups
- Left-Click: Edit chance (0-100%)
- Right-Click: Open actions for this group
- Shift + Left-Click: Delete group
Actions in Groups
Each chance group has its own action list. Click the group to manage its actions.
Random Groups
Configure weighted random selections:
Adding Groups
- Click Add Random Group
- Set how many actions to pick
- Add weighted actions
Weight Syntax
When adding actions, prefix with weight:
{50} CONSOLE give %player% diamond 1
Editing Groups
- Left-Click: Edit pick amount
- Right-Click: Manage actions
- Shift + Left-Click: Delete group
Crafting Menu
Configure custom crafting recipes:
Enable/Disable
Toggle button to enable crafting for this voucher.
Output Amount
Set how many vouchers the recipe produces (1-64).
Permission
Set optional permission to craft:
- Enter permission node
- Type
noneto clear
Shape
Edit the 3x3 crafting grid:
- Click row to edit
- Enter 3 characters (letters or spaces)
- Each letter maps to an ingredient
Ingredients
Map letters to materials:
- Click existing ingredient to change material
- Click Add to add new mapping
- Shift + Left-Click to remove
Tips
Quick Editing
Use the GUI for quick changes, then fine-tune in the YAML file for complex configurations.
Live Preview
Changes save automatically. Test your voucher immediately with:
/voucher give <your_name> <voucher> 1
Backup
Before major changes, duplicate your voucher:
/voucher duplicate myvoucher myvoucher_backup
Chat Input
When prompted for input:
- Type your value in chat
- Type
cancelto cancel - Input times out after 60 seconds
Color codes and hex colors are supported:
&6&lGolden Voucher
&#FF6B35Custom Hex Color